﻿using Basefr.Attributes;
using Paas.Core.Const.Enums;
using Paas.Core.Meta.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Paas.Core.MetaForms.Entities
{
    /// <summary>
    /// 元数据表单字段
    /// </summary>
    [MainTable(nameof(MetaFormField))]
    public class MetaFormField : BaseEntity
    {
        /// <summary>
        /// 字段所属元数据表单Id
        /// </summary>
        public Guid? MetaFormId { get; set; }
        public virtual MetaForm MetaForm { get; set; }

        /// <summary>
        /// 字段所属元数据字段Id
        /// </summary>
        public Guid? MetaFieldId { get; set; }
        public virtual MetaField MetaField { get; set; }


        /// <summary>
        /// 元数据字段重命名，用于显示在表单上，默认中文
        /// </summary>
        public string ReLabel { get; set; }
        /// <summary>
        /// 搜索表单时是否支持模糊查询
        /// </summary>

        public bool? IsLike { get; set; }


    }

}
